package com.server;

import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.boot.autoconfigure.jdbc.DataSourceAutoConfiguration;
import org.springframework.context.ConfigurableApplicationContext;

/**
 * 启动程序
 *
 * @author server
 */

@SpringBootApplication(exclude = { DataSourceAutoConfiguration.class })
public class ServerApplication
{
    public static ConfigurableApplicationContext run =null;
    public static void main(String[] args)
    {
        ConfigurableApplicationContext a = SpringApplication.run(ServerApplication.class, args);
        System.out.println("          启动成功          \n" +
                "   ( ' )             _.         \n" +
                "  (_ o _)          _( )_ .         \n" +
                "   (_,_).'        (_ o _)'          \n" +
                "                   (_,_)'         \n"
        );
        if (run==null){
            run = a;
        }
    }
}
